import 'package:flutter/material.dart';
// import '../res/r.dart';
import './myicon.dart';
import 'package:get/get.dart';

class EmptyData extends StatelessWidget {
  const EmptyData({super.key});

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: double.infinity,
      // height: 800,

      // color: Colors.yellow,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          SizedBox(
            // width: 200,
            // height: 200,
            // child: Image.asset(
            //   R.nodata,
            //   fit: BoxFit.cover,
            // ),
            child: Icon(
              MyIcon.cuteNodata,
              size: 150,
              color: Get.isDarkMode ? Colors.grey : Colors.amber,
            ),
          ),
          Container(
            // width: 200,
            height: 60,
            // color: Colors.red,
            alignment: const Alignment(0, 0),
            child: Text(
              '啊欧 数据空空如也',
              style: TextStyle(
                  fontSize: 16,
                  color: Get.isDarkMode ? Colors.grey : Colors.black38),
            ),
          )
        ],
      ),
    );
  }
}
